pub trait BitPack {
type Packed;
fn pack(self) -> Self::Packed;
fn unpack(packed: Self::Packed) -> Self;
}Expand description
A trait that defines how to pack and unpack uints.
Implementing BitPack allows types to be used with the pack and unpack macros.